
Rem
	Determine whether a variable (string for main) is considered to be empty.
	This ignores "0" in favor of "~0" which is null, or Chr(0), if you want.
	
	@author	Nicholas Grant
	@updatedby	
	@return	boolean
EndRem
Function empty:Int( str:String )
	If ( str = Null )
		Return True;
	End If
	If ( str.Length <= 1 )
		Local notChars:String[] = [ "", "~0" ];
		
		For Local cnt:Int = 0 To notChars.Length - 1
			If ( str = notChars[cnt] )
				Return True;
			End If
		Next
	End If
	Return False;
End Function

Function empty_int:Int( val:Int )
	If ( val = Null Or val = False )
		Return True;
	End If
	Return False;
End Function

Function empty_float:Int( val:Float )
	If ( val = Null Or val = False Or val = 0.0 )
		Return True;
	End If
	Return False;
End Function

Function empty_str:Int( str:String )
	Return empty( str );
End Function